﻿using EmoneyWeiXinDAL;
using EmoneyWeiXinEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmoneyWeiXinBLL
{
    public class ZhouNianQingZhuanPanBLL
    {
        public static int InsertData(ZhouNianQingZhuanPanEntity entity)
        {
            return ZhouNianQingZhuanPanDAL.InsertData(entity);
        }

        public static int GetShengyuShuliang()
        {
            return ZhouNianQingZhuanPanDAL.GetShengyuShuliang();
        }

        public static ZhouNianQingZhuanPanEntity GetActDataByOpenId(string openid)
        {
            return ZhouNianQingZhuanPanDAL.GetActDataByOpenId(openid);
        }

        public static int CloseOrOpen(int i)
        {
            return ZhouNianQingZhuanPanDAL.CloseOrOpen(i);
        }

        public static int ActIsOpen()
        {
            return ZhouNianQingZhuanPanDAL.ActIsOpen();
        }

        public static int UpdateShengyuShuliang()
        {
            return ZhouNianQingZhuanPanDAL.UpdateShengyuShuliang();
        }
        /// <summary>
        /// 获取中奖名单
        /// </summary>
        /// <returns></returns>
        public static List<ZhouNianQingZhuanPanEntity> GetZJMD()
        {
            return ZhouNianQingZhuanPanDAL.GetZJMD();
        }


        public static List<ZhouNianQingZhuanPanEntity> GetAllData()
        {
            return ZhouNianQingZhuanPanDAL.GetAllData();
        }

        public static int DeleteAll()
        {
            return ZhouNianQingZhuanPanDAL.DeleteAll();
        }

        public static int SetSyCount(int count)
        {
            return ZhouNianQingZhuanPanDAL.SetSyCount(count);
        }
    }
}
